<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	{
		function fn1(){
		
		}
		const fn2 = function(){
		
		}
		setTimeout(function(){
		
		})
		const fn3 = ()=>{
		
		}
		const obj = {
			fn4:function(){
			
			},
			fn5(){
			
			},
			fn6:()=>{
				console.log(this)
			}
		}
		(function(){
		
		})();
	}
	{
		// async 函数
		async function fn1(){
		
		}
		const fn2 = async function(){
		
		}
		setTimeout(async function(){
		
		})
		const fn3 = async ()=>{
		
		}
		const obj = {
			fn4:async function(){
			
			},
			async fn5(){
			
			},
			fn6:async ()=>{
				console.log(this)
			}
		}
		(async function(){
		
		})();
		
	}
</script>
</html>